{% extends extend_template %}
{%block center%}
<div class="edit_form">
    <h2 class="title" >Add new factor</h2>
    <form id="editFactor" action="add" method="post" class="edit">
        {% csrf_token %}
        <fieldset><legend></legend>
            <div>
                <label>Name:</label>
                <span class="helptext">Enter name of the factor</span>
                <input type="text" name="name">
            </div>
            <div>
                <label>Decay:</label>
                <span class="helptext">Enter decay rate of the factor</span>
                <input type="text" name="decay">
            </div>
            <div>
                <label>Diffusibility:</label>
                <span class="helptext">Enter diffusibility rate of the factor</span>
                <input type="text" name="diffusibility">
            </div>
            {% comment %} Trick with_sgx parameter {% endcomment %}

            {% if extend_template == "simgenex/base_simgenex.html" %}
                <input type="hidden" name="with_sgx" value="1"/>
            {% endif %}
        </fieldset>
        <div>
            <button type="submit" name="submit">Submit</button>
            <button type="submit" name="cancel">Cancel</button>
        </div>
    </form>

</div>
{% endblock %}